package com.chentf.feignclients.impl;

import com.chentf.feignclients.HystrixClient;
import org.springframework.context.annotation.Configuration;

/**
 * @author chentengfei
 * @desc 自定义HystrixClient 默认备选处理
 * @date 2021-09-20 19:31:23
 */
@Configuration
public class HystrixClientFallBack implements HystrixClient {

    @Override
    public String demo(Integer id) {
        return "当前服务不可用,请稍后再试!id:"+id;
    }
}
